package org.jet.emall.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-07 22:07
 */

@Configuration
@EnableConfigurationProperties(org.jet.emall.config.JwtConfig.class)
@ConfigurationProperties("custom.security.jwt")
@Data
public class JwtConfig {
    private  String secret="secret";

    private  String issuer="issuer";

    private  Integer seconds=3600;

    private String tokenHead="Bearer";

    private String tokenHeaderName="Authorization";
}
